import request from '@/utils/request'
export default {
  getRole (data) {
    return request({
      ContentType: 'application/json',
      url: '/scs/roleManage/getRole',
      method: 'post',
      data
    })
  }  ,  getRoleOptions (data) {
    return request({
      ContentType: 'application/json',
      url: '/scs/roleManage/getRoleOptions',
      method: 'post',
      data
    })
  }  ,  addRole (data) {
    return request({
      ContentType: 'application/json',
      url: '/scs/roleManage/addRole',
      method: 'post',
      data
    })
  }  ,  updateRole (data) {
    return request({
      ContentType: 'application/json',
      url: '/scs/roleManage/updateRole',
      method: 'post',
      data
    })
  }  ,  deleteRole (data) {
    return request({
      ContentType: 'application/json',
      url: '/scs/roleManage/deleteRole',
      method: 'post',
      data
    })
  }  , getAuthorityGroup (data) {
    return request({
      ContentType: 'application/json',
      url: '/scs/authorityGroupManage/getAuthorityGroup',
      method: 'post',
      data
    })
  }  ,
  querySubscriber1 (data) {
    RoleManage.deleteUser()
    .then(res => {

    }).catch(err => {
      // 异常情况
      console.log(err);
    });
  }
}
